package com.hdwe.icpms.admin.domain.vo;

import com.hdwe.icpms.admin.domain.ProtocolMetadata;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 数据协议元数据视图对象 cpc_protocol_metadata
 *
 * @author Lus
 * @date 2024-12-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ProtocolMetadata.class)
public class ProtocolMetadataVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 说明
     */
    @ExcelProperty(value = "说明")
    private String metadataComment;

    /**
     * 英文
     */
    @ExcelProperty(value = "英文")
    private String metadataCommentEn;

    /**
     * 版本
     */
    @ExcelProperty(value = "版本")
    private String metadataVersion;

    /**
     * 名称
     */
    @ExcelProperty(value = "名称")
    private String metadataName;

    /**
     * 数据库类型
     */
    @ExcelProperty(value = "数据库类型")
    private String metadataDbType;

    /**
     * 数据类型
     */
    @ExcelProperty(value = "数据类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "icpms_protocol_metadata_type")
    private String metadataType;

    /**
     * 长度
     */
    @ExcelProperty(value = "长度")
    private Long metadataLength;

    /**
     * 有无符号
     */
    @ExcelProperty(value = "有无符号", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "icpms_protocol_metadata_signed")
    private String metadataSigned;

    /**
     * 精度
     */
    @ExcelProperty(value = "精度")
    private Long metadataScale;

    /**
     * 多选值
     */
    @ExcelProperty(value = "多选值")
    private String metadataValues;

    /**
     * 默认值
     */
    @ExcelProperty(value = "默认值")
    private String metadataDefault;

    /**
     * 最大值
     */
    @ExcelProperty(value = "最大值")
    private String metadataMax;

    /**
     * 最小值
     */
    @ExcelProperty(value = "最小值")
    private String metadataMin;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位")
    private String metadataUnit;

    /**
     * 建表语句
     */
    @ExcelProperty(value = "建表语句")
    private String metadataDdl;

    /**
     * 字符编码方式
     */
    @ExcelProperty(value = "字符编码方式", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "icpms_protocol_encoding_type")
    private String encodingType;

    /**
     * 计算公式
     */
    @ExcelProperty(value = "计算公式")
    private String calculation;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_able_status")
    private String status;

    /**
     * 创建部门
     */
    @ExcelProperty(value = "创建部门")
    private Long createDept;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 修改人
     */
    @ExcelProperty(value = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 删除标志
     */
    @ExcelProperty(value = "删除标志")
    private String delFlag;


}
